<template>
	<view>
		<!-- #ifdef MP-WEIXIN -->
		<view class="charts-box">
			<qiun-data-charts type="area" :chartData="chartData" />
		</view>
		<!-- #endif -->
	</view>
</template>

<script>
	// #ifdef MP-WEIXIN
	export default {
		props: {
			chartId: {
				type: String,
				default: 'echarts-line'
			},
			xAxis: {
				type: Array,
				default: function() {
					return []
				}
			},
			series: {
				type: Array,
				default: function() {
					return []
				}
			},
			series1: {
				type: Array,
				default: function() {
					return []
				}
			}
		},
		data(options) {
			return {
				chartData: {
					categories: options.xAxis.data,
					series: [{
						name: "策略收益",
						data: options.series
					}]
				}
			}
		},
		mounted() {},
		methods: {
			changeOption() {},
			onViewClick(options) {}
		}
	}
	// #endif
</script>

<style lang="scss" scoped>
	
	.echart-line {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.line {
		width: 100%;
		height: 400rpx;
	}
	.charts-box {
		width: 100%;
		height: 400rpx;
	}
</style>
